package com.ruoyi.tester.executor.http;

import java.util.HashMap;
import java.util.Map;

/**
 * @author SongJun
 * @description TODO:
 * @date 2022/5/30 16:41
 */
public class HttpUtilsFactory {
    private static Map<String, HttpUtils> HTTP_UTILS_CONTAINER = new HashMap<>();
    static {
        HTTP_UTILS_CONTAINER.put("ok_http", new OkhttpsUtil());
        HTTP_UTILS_CONTAINER.put("unirest", new UnirestUtil());
    }

    public static HttpUtils getHttpUtils(){
        return HTTP_UTILS_CONTAINER.get("unirest");
    }
}
